package com.hqyj.controller;

import com.hqyj.anno.UserActionType;
import com.hqyj.pojo.KaoQin;
import com.hqyj.pojo.LogInfo;
import com.hqyj.service.LogInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;

@Controller
@RequestMapping("log")
public class LogInfoController {

    @Autowired
    LogInfoService logInfoService;
    @RequestMapping("logPage")
    public String kaoqinPage() {
        return "attendance/addAttendance";
    }


    //查询
    @RequestMapping("selectAll")
    @ResponseBody
    public HashMap<String, Object> selectAll(LogInfo logInfo) {
        return logInfoService.selectAll(logInfo);
    }
}
